package com.china.osourcechina;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;

import com.china.base.BaseActivity;

/**
 * Created by Administrator on 2016/5/12.
 */
public class LoginActivity extends BaseActivity implements View.OnClickListener{

    private EditText email;
    private EditText password;
    private Button button;
    private ImageView qq;
    private ImageView weChat;
    private ImageView microblog;
    private String mEmail;
    private String mPassword;

    @Override
    protected int loadWindowLayout() {
        return R.layout.activity_login;
    }

    @Override
    protected void initTitleBar() {
        //找寻控件
        /** 用户名/Email邮箱*/
        email = (EditText) findViewById(R.id.login_email);
        /** 密码*/
        password = (EditText) findViewById(R.id.login_password);
        /** 登录按钮*/
        button = (Button) findViewById(R.id.login_button);
        /** qq第三方登录*/
        qq = (ImageView) findViewById(R.id.login_qq);
        /** 微信第三方登录*/
        weChat = (ImageView) findViewById(R.id.login_WeChat);
        /** w微博第三方登录*/
        microblog = (ImageView) findViewById(R.id.login_microblog);
        //设置监听
        button.setOnClickListener(this);
        qq.setOnClickListener(this);
        weChat.setOnClickListener(this);
        microblog.setOnClickListener(this);
        //读取输入框里的值
        mEmail = email.getText().toString();
        mPassword = password.getText().toString();


    }

    @Override
    protected void initViews() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.login_button://登录按钮

                break;
            case R.id.login_qq://QQ登录

                break;
            case R.id.login_WeChat://微信

                break;
            case R.id.login_microblog://微博

                break;
        }
    }
}

